SetTalkActivationKey(KEY_SPACE);

var MyFont   = LoadFont("fnt.rfn");
var MyWindow = LoadWindowStyle("mainwindow.rws");

function Talk(txt)
{
	
	
	var sh = GetScreenHeight();
	var sw = GetScreenWidth();
	
	while(!IsKeyPressed(KEY_ENTER))
	{
		RenderMap();
		MyWindow.drawWindow(8,sh-48, sw-16,40);
		MyFont.drawTextBox(8,sh-48, sw-16, 40,0,txt);
		FlipScreen();
	}
	
}
